<tr>
    <td>装机人</td>
    <td>装机电话</td>
    <td>装机型号</td>
    <td>装机日期</td>
    <td>状态</td>
</tr>
@foreach($mounts as $mount)
<tr>
    <td>{{ $mount->mount_name }}</td>
    <td>{{ $mount->mount_mobile }}</td>
    <td>{{ $mount->machine->name }}</td>
    <td>{{ $mount->created_at }}</td>
    <td>

                    @if($mount->state == 0)
                    申请试用中
                    @elseif($mount->state == 1)试用中
                    @elseif($mount->state == 2)订购中
                    @elseif($mount->state == 3)使用中
                    @elseif($mount->state == 4)拆机中
                    @elseif($mount->state == 5)已拆机
                    @elseif($mount->state == 6)使用中
                    @elseif($mount->state == 7)换芯中
                    @elseif($mount->state == 8)维修中
                    @endif
    </td>
</tr>
@endforeach